package org.inspiration.dudu.content.model.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AnswerEntity {
    private String id;  // 回答的唯一ID，UUID以字符串形式存储

    private String contentFilePath;  // 回答的内容路径
    private Long userId;  // 发布者的用户ID，关联到 `User` 实体
    private String parentId; //父节点的UUID


    private LocalDateTime createdAt;  // 创建时间
    private LocalDateTime updatedAt;  // 更新时间

    private Long likeCount; //点赞数
    private Long favoriteCount; //收藏数
    private Long commentCount;//评论数量
}
